import {createRouter,createWebHistory,RouteRecordRaw} from 'vue-router'


//定义路由规则
const route:Array<RouteRecordRaw> = [
    {
        path:"/",
        component:()=>import('../View/User/Login.vue')
    },
    {
        path:"/Register",
        component:()=>import('../View/User/Register.vue')
    }
]

//创建路由实例
const routes = createRouter({
    history: createWebHistory(),
    routes: route,
})

//导出路由
export default routes;